#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class PracticeRcd : Business.BusinessBase<PracticeRcd, int>
	{
		#region Fields and Properties

		private String pratiseState = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PratiseState
		{
			get { return pratiseState; }
			set
			{
				if (value != pratiseState)
				{
					MarkChanged("PratiseState");
					pratiseState = value;
				}
			}
		}

		private String teamPhone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeamPhone
		{
			get { return teamPhone; }
			set
			{
				if (value != teamPhone)
				{
					MarkChanged("TeamPhone");
					teamPhone = value;
				}
			}
		}

		private String teamCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeamCate
		{
			get { return teamCate; }
			set
			{
				if (value != teamCate)
				{
					MarkChanged("TeamCate");
					teamCate = value;
				}
			}
		}

		private String returnReson = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ReturnReson
		{
			get { return returnReson; }
			set
			{
				if (value != returnReson)
				{
					MarkChanged("ReturnReson");
					returnReson = value;
				}
			}
		}

		private String entCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EntCode
		{
			get { return entCode; }
			set
			{
				if (value != entCode)
				{
					MarkChanged("EntCode");
					entCode = value;
				}
			}
		}

		private DateTime endDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime EndDate
		{
			get { return endDate; }
			set
			{
				if (value != endDate)
				{
					MarkChanged("EndDate");
					endDate = value;
				}
			}
		}

		private DateTime startDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime StartDate
		{
			get { return startDate; }
			set
			{
				if (value != startDate)
				{
					MarkChanged("StartDate");
					startDate = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public PracticeRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override PracticeRcd DataSelect(int id)
		{
			return Services.DALService.PracticeRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.PracticeRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.PracticeRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.PracticeRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
